package com.lz.springboot.study;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

@Configuration
public class CustomRedisTemplate implements InitializingBean {
	@Autowired
	RedisTemplate<Object, Object> redisTemplate;

	@Bean
	public Bean1 CustomBean1() {
		return new Bean1("我叫张三");
	}

	@Override
	public void afterPropertiesSet() throws Exception {

	}
}
